#!/usr/bin/env node

const { Readable } = require('stream'),
      fs=require('fs');
const rs = new Readable();
rs.push('hello');
rs.push('world!');
rs.push(null);
//rs.pipe(process.stdout);
rs.pipe(fs.createWriteStream('./test.txt'));
